from configparser import ConfigParser
import os
class Reader:
    def __init__(self,file):
        self.config =ConfigParser()
        path = os.path.split(os.path.realpath(__file__))[0] + os.sep + file
        self.config.read(path,encoding="utf-8")
    def get_option(self,option):
        for section in self.config.sections():
            if self.config.has_option(section, option):
                return self.config.get(section, option)
# if __name__ == '__main__':
#     print(os.path.split(os.path.realpath(__file__)))
#     print(os.path.split(os.path.realpath(__file__) + os.sep))